typedef unsigned char BYTE;
typedef struct{
	int segno;  /* segment number */
	BYTE *start;  /* segment first Byte pos */
	BYTE *end;    /* segment last Byte pos */
}t_segment;

#define PRINT_LINE(__CUR__) {\
	BYTE *CUR = __CUR__;\
	while (*CUR != '\n'){\
		printf("%c", *CUR);\
		CUR ++;\
	}\
	printf("\n");\
}

#define PRINT_KEY(__CUR__) {\
	BYTE *CUR = __CUR__;\
	while (*CUR != ','){\
		printf("%c", *CUR);\
		CUR ++;\
	}\
	printf("\n");\
}

#define PRINTF printf

void* open_file(char *filename, size_t *pFSize);

void *split_search(BYTE *start, size_t fsize, BYTE *key);